docker pull castle6610/nds32le-toolschain:latest

docker run -it --rm \
  -v "$(pwd)":/workspace \
  -w /workspace \
  castle6610/nds32le-toolschain:latest \
  /bin/bash -c "chmod +x build.sh; ./build.sh build; exit"